package znbkTestPaperRdqh.aip;

import com.example.lancooznbk.service.HttpGetServer;
import com.lancoo.rxretrofitlibrary.Api.BaseApi;
import com.lancoo.rxretrofitlibrary.Api.UserInfo;
import com.lancoo.rxretrofitlibrary.listener.HttpOnNextListener;
import com.trello.rxlifecycle.components.support.RxAppCompatActivity;

import retrofit2.Retrofit;
import rx.Observable;
import znbkTestPaperRdqh.ZnbkPaperRdqhInfor;

/**
 * Created by Administrator on 2018\4\2 0002.
 */

public class WeekAscensionPaperApi extends BaseApi {
    public WeekAscensionPaperApi(HttpOnNextListener listener, RxAppCompatActivity rxAppCompatActivity) {
        super(listener, rxAppCompatActivity);
    }

    @Override
    public Observable getObservable(Retrofit retrofit) {
        HttpGetServer httpGetServer = retrofit.create(HttpGetServer.class);
        return httpGetServer.getWeekAscensionPaperEntity(UserInfo.StuId, ZnbkPaperRdqhInfor.PaperId, true);
    }
}
